package com.quanyan.stadium.service.commonComponent;

import com.quanyan.stadium.entity.vo.CreateIMGroupVo;
import com.quanyan.stadium.entity.vo.IMResponseGroupVo;

import java.util.List;

/**
 * IM及时通信服务
 * Created by Zheng.Ke
 * Date 2016/7/9.
 */
public interface IMService {
    /**
     * 调用C++的创建及时通信群组接口
     */
    IMResponseGroupVo createIMGroup(CreateIMGroupVo createIMGroupVo);

    /**
     * 调用C++，增加群成员接口
     * @param groupid
     * @param uidList
     * @return
     */
    IMResponseGroupVo addMembers(String groupid, List<Integer> uidList, int currentUid);

    /**
     * 调用C++，增加群成员接口
     * @param groupid
     * @param uid
     * @return
     */
    IMResponseGroupVo addMembers(String groupid, int uid, int currentUid);

    /**
     * 调用C++，删除群成员接口
     * @param currentUid   创建者UID
     * @param groupid
     * @param deleteUid
     * @param extid   约运动id
     * @return
     */
    IMResponseGroupVo deleteMembers(Integer currentUid, String groupid, int deleteUid, int extid);

    /**
     * 删除群接口
     * @param currentUid  创建者UID
     * @param groupid
     * @param extid  约运动id
     * @return
     */
    IMResponseGroupVo quitGroup(Integer currentUid, String groupid, int extid);
}
